package com.ycrlkj.android.modulescore.main.apiservice;

import com.ycrlkj.android.modulescore.main.entity.XxAppointment;
import com.ycrlkj.android.modulespublic.common.net.response.MResponse;
import com.ycrlkj.android.modulespublic.common.net.response.ResultData;
import java.util.List;
import io.reactivex.Observable;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.PUT;
import retrofit2.http.Path;


/**
 * 复制此类时说明:
 * 注意: 每新增一个 XXXXApiService 文件需要向 BaseApiService 中添加一个注入的生产者
 */
public interface XxAppointmentApiService {

    @GET("xxAppointment/getAllByUserId/{userId}")
    Observable<MResponse<List<XxAppointment>>> getAllByUserId(@Path("userId") String userId);

    @GET("xxAppointment/getById/{id}")
    Observable<MResponse<XxAppointment>> getById(@Path("id") String id);

    @POST("xxAppointment/add")
    Observable<MResponse<ResultData>> add(@Body XxAppointment xxAppointment);

    @PUT("xxAppointment/edit")
    Observable<MResponse<ResultData>> edit(@Body XxAppointment xxAppointment);

    @GET("xxAppointment/doCheckById/{id}")
    Observable<MResponse<ResultData>> doCheckById(@Path("id") String id);

}
